<?php
header("content-Type:text/html;charset=utf-8");
	/**
	 * 数据库连接
	 * @author guning
	 * @datetime 2015年4月25日11:00:29
	 * @return boolean
	 */
	function Linking(){
	    $Mhostname = SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT;
	    $Shostname = SAE_MYSQL_HOST_S.':'.SAE_MYSQL_PORT;
	    $dbuser = SAE_MYSQL_USER;
	    $dbpass = SAE_MYSQL_PASS;
	    $dbname = SAE_MYSQL_DB;
	    
	    //连接数据库
	    $link=mysql_connect($Mhostname,$dbuser,$dbpass)or die("数据库连接出错");
	    mysql_select_db($dbname,$link);
	    mysql_query("set names UTF-8");
	    
	    return true;
	}
		$Mhostname = SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT;
	    $Shostname = SAE_MYSQL_HOST_S.':'.SAE_MYSQL_PORT;
	    $dbuser = SAE_MYSQL_USER;
	    $dbpass = SAE_MYSQL_PASS;
	    $dbname = SAE_MYSQL_DB;




?>